<?php 
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
require 'jtools.inc';
require 'mysql_connect.php';

if (isset($_REQUEST["pAboutUs"])) {
	$vQuery = "UPDATE reagent SET AboutUs='" . $_REQUEST["pAboutUs"] . "' WHERE idREAgent=" . $_COOKIE['RealtyAppCookie_AgentID'];
	mysql_query($vQuery) or die("Invalid query 2: " . mysql_error());
	$vMessage = 'About Text saved successfully.';
}


$rsAgents = mysql_query("SELECT AboutUs FROM reagent WHERE idREAgent=" . $_COOKIE['RealtyAppCookie_AgentID']) or die("Invalid query 1: " . mysql_error());
$rsAgent = mysql_fetch_array($rsAgents,MYSQL_BOTH);

$vAboutUs = 'This is a reminder to add/edit your About Us Content via our CMS (login details provided). This will populate this page automatically.';
if ($rsAgent["AboutUs"] <> '') $vAboutUs = $rsAgent["AboutUs"];

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <head><title></title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta name="abstract" content="" />
        <meta name="robots" content="All">
        <meta name="robots" content="noindex, nofollow">
        <meta name="copyright" content="Copyright " />
        <meta name="author" content="" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <meta content="no" http-equiv="imagetoolbar" />
        <title>Jasdip.co.uk # Mobile App Development Platform</title>
        <link rel="shortcut icon" href="http://www.appmanager.co.uk/admin_us_broker/favicon.ico"/>
        <link href="style.css" rel="stylesheet" type="text/css">
	<link href="css/slider.css" rel="stylesheet" type="text/css">
        <link href="css/style.css" media="all" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="css/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" />
	<link rel="Stylesheet" type="text/css" href="css/jPicker-1.1.6.min.css" />

	<script src="js/jquery-1.6.2.min.js"  type="text/javascript"></script> 
	<script src="js/jquery-ui-1.8.16.custom.min.js"  type="text/javascript"></script>
	<script src="js/jquery.jcarousel.pack.js"  type="text/javascript"></script>
	<script src="js/jquery-func.js" type="text/javascript"></script>
		
	<script src="js/jpicker-1.1.6.min.js" type="text/javascript"></script>
	<!--<script src="js/jquery.js" type="text/javascript"></script>-->
	<script src="http://www.appmanager.co.uk/admin_us_broker/js/javascri.js" type="text/javascript"></script>
        <script src="js/jquery.getParams.js" type="text/javascript"></script>
        <script src="js/jquery.bestupper.min.js" type="text/javascript"></script>
        <script src="js/jquery.alphanumeric.js" type="text/javascript"></script>
        <script src="js/jquery.form-defaults.js" type="text/javascript"></script>
        <script src="js/textLimit.min.js" type="text/javascript"></script>
        <script src="js/ipublish.js" type="text/javascript"></script>
	<script src="js/iphone-style-checkboxes.js" type="text/javascript" charset="utf-8"></script>
                    <script src="js/about_text.js" type="text/javascript"></script>
        	<script type="text/javascript" charset="utf-8" src="js/site.js"></script>
	<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<script type="text/javascript" src="js/ajaxfileupload.js"></script>
	<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  </head>
    <body>
        <div class="outside2">

            <div class="header_wrap cc">


                <div class="header_wrap cc">
                    <script>

    $(document).ready(function(){
        $('[rel=tooltip]').bind('mouseover', function(){
            var theMessage = $(this).attr('content');
            $('<div class="tooltip">' + theMessage + '</div>').appendTo('body').fadeIn('fast');

            $(this).bind('mousemove', function(e){
                $('div.tooltip').css({
                    'top': e.pageY - ($('div.tooltip').height())+10,
                    'left': e.pageX +30
                });
            });
        }).bind('mouseout', function(){
            $('div.tooltip').fadeOut('fast', function(){
                $(this).remove();
            });
        });
    });
	
</script>
<div class="lftop">
    <a href="home.php" class="logo">
        <img src="images/logo/logo.png"/>
    </a>
</div>
<div class="right_topwrap">
    <div class="topwrap cc">
        <p class="phonetop">Phone Support (from 8am to 5pm): 212 209 1005	</p>
        <div class="agentwrap">
            <ul class="toplinks">
                <li class="notif_ic"><a href="about-text.php#" content="Powered by Digital Planit" rel="tooltip">&nbsp;</a></li>
                <li class="mail_ic"><a href="mailto:support@realtysmartapps.com">&nbsp;</a></li>
              
                <li class="help_ic"><a href="mailto:support@realtysmartapps.com" >&nbsp;</a></li>  
				<li class="settings_ic"><a href="app_property_settings.php">&nbsp;</a></li>            </ul>
        </div></div>
    <ul class="main_menu cc">
        <li class="homelk"><a href="home.php"><span>Home</span></a></li>
        <li  class="brokers"><a href="brokers.php"><span>My Details</span></a></li>        <li  class="testimonials"><a href="testimonials.php"><span>Testimonials</span></a></li>
        <!--li class="tour"><a href="tour.php"><span>Tour</span></a></li-->
        <li class="news"><a href="news.php"><span>News</span></a></li>
        <li class="abouttext"><a href="about-text.php"><span>About Text</span></a></li>
        <li class="stats"><a href="stats.php"><span>Stats</span></a></li>        <!--li class="images"><a href="images.php"><span>Images</span></a></li-->        <!--<li class="advert"><a href="adverts.php"><span>Adverts</span></a></li>
        <li class="notification"><a href="notifications.php"><span>Notification</span></a></li>
	<li class="payment "><a href="payment.php"><span>Payment</span></a></li>-->
        <li class="logout"><a href="login.php?pAction=<?=jencrypt('logout')?>"><span>Log Out</span></a></li>
    </ul>
</div>

<div id="menu">

</div>

</div>
                </div>
            </div>

            <div class="container_wrap">
                <div class="topshadow">&nbsp;</div>
<div class="lineshadow">
    <div class="middle cc">
        <div class="cc"><img src="images/jasdip_logo.png" class="piclg">
            <div class="introtext">
                <ul class="listlogos cc">
                </ul>
                <br>
                <h1 class="say-hello"><cufon class="cufon cufon-canvas" alt="Come " style="width: 54px; height: 20px;"><canvas width="68" height="20" style="width: 68px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>Come </cufontext></cufon><cufon class="cufon cufon-canvas" alt="on, " style="width: 31px; height: 20px;"><canvas width="45" height="20" style="width: 45px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>on, </cufontext></cufon><cufon class="cufon cufon-canvas" alt="say " style="width: 32px; height: 20px;"><canvas width="46" height="20" style="width: 46px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>say </cufontext></cufon><cufon class="cufon cufon-canvas" alt="hello!" style="width: 46px; height: 20px;"><canvas width="60" height="20" style="width: 60px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>hello!</cufontext></cufon></h1>
            </div>
        </div>
        <div class="contentpage">
			<h2>About Text</h2>
			<p class="error_wrapper"><?=$vMessage?></p>
			<!--p>You can add and edit your Apps Abut from this page. <span class="text">To send a push notification tick this box <input type="checkbox"></span></p-->
			<form action="about-text.php" method="post" name="formAboutUs" id="formAboutUs" class="addT cc">		
				<div class="col2">
					<p>Add / Edit Your About Us Text Content</p>
					<textarea style=" height: 222px;" name="pAboutUs" cols="20" rows="10" id="txtAboutUs" tabindex="401" onFocus="this.select()"><?=$vAboutUs?></textarea>
				</div>		
				<input type="submit" value="Submit" class="submit_btn" tabindex="402">
			</form>
		</div>
        <img src="images/iphone_pic.jpg" class="piccontent2" />
    </div>
</div>
</div>	
            </div>	

            <div class="footer_wrap2 cc">
                <div class="bgfooter cc">
                    
                </div>

            </div>

        </div>

        <script type="text/javascript">
            
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19667077-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
            
        </script>	

    </body>
</html> 